package cn.itcast.bos.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.dao.StandardRespository;
import cn.itcast.bos.domain.Standard;
import cn.itcast.bos.service.base.StandrdServies;
@Service
@Transactional
public class StandardServiceiMPL implements StandrdServies  {
   
	
	@Autowired
	private StandardRespository standardRespository;
	@Override
	public void save(Standard standard) {
		standardRespository.save(standard); 
		
	}
	
	
	


	@Override
	public Page<Standard> findPageData(Pageable pageable) {
		// TODO Auto-generated method stub
		return standardRespository.findAll(pageable);
	}





	@Override
	public List<Standard> findAll() {
		
		return standardRespository.findAll();
	}

}
